import { Context, inject, provide,plugin} from 'midway';
@provide()
export class parsingToken {

@inject()
ctx: Context;
@plugin()
jwt
async parsing (token) {
 const {res} =await this.jwt.verify(token.substring(7));
    let account ={}
    for(let accountList of res){
      account=accountList
    }
   return account
}
        
   
    
}